package com.org.cbs.model;

import java.io.Serializable;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Document(collection = "demo.demo")
public class UserDemo implements Serializable {

	private static final long serialVersionUID = 1L;

	@Field(value="id")
	private String id;
	@Field(value="username")
	private String username;
	@Field(value="age")
	private int age;
	@Field(value="pwd")
	private int pwd;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getPwd() {
		return pwd;
	}

	public void setPwd(int pwd) {
		this.pwd = pwd;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "UserDemo [id=" + id + ", username=" + username + ", age=" + age + ", pwd=" + pwd + "]";
	}

}
